<?php
session_start();

include('config/db_settings.php');
include('./pms/pms_inc.php');

$user = $_SESSION[$settings['session_prefix'].'user_id'];
$user_name = $_SESSION[$settings['session_prefix'].'user_name'];


?>
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" type="text/css" href="./templates/<? echo $settings['template'] ?>/style.css" media="all" />
		<title>Modify</title>
		<script src="js/google.js" type="text/javascript"></script>
	</head>
<body>
<?
//Are they logged in or not?
if(!$user)
    {
    echo "<br><p>You aren't logged in. Please log in first.</p><br>";
    }
    
else
    {
?>
<div class="content">
<br>		<FORM name="f1" METHOD='get' Action='index.php' >
		<center>
		<TABLE BORDER=0 cellspacing=1 cellpadding=5 width=500 class="table">

		<TR valign=top >
			<TD>
				<br>
				<span class=title>
				修改帖子
				Modify Message
				</span>
			</TD>
		</TR>
		<TR>
			<TD align=left>
				<font color=blue>
				 UserID: <? echo $user_name; ?>				 </font>
			</TD>
		</tr>
			<TR valign=top >
				<TD>
					You can modify your message if no one has replied it.  
					Please enter the number for the message you want to modify.
				</TD>
			</TR>

			<TR valign=top >
				<TD>
					Message#:
					<input type=text name="edit" size=8 maxlength=20 value="">
					<input type="hidden" name="mode" value="posting">
					<input type="hidden" name="back" value="entry">
				</TD>
			</TR>
			<TR>
				<TD>
					<INPUT TYPE='submit' value='Submit' >
					&nbsp;
					<INPUT TYPE='reset' NAME='Reset'>
				</TD>
			</TR>
			
		</TABLE>
		</FORM>
</div>
<?
	}
?>
</body>
</html>